product of binomial and trinomial